package com.itheima.zhuanhuan;

public class Student {

    private String name;
    private int yScore;
    private int sScore;
    private int eScore;

    public Student() {
    }

    public Student(String name, int yScore, int sScore, int eScore) {
        this.name = name;
        this.yScore = yScore;
        this.sScore = sScore;
        this.eScore = eScore;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getyScore() {
        return yScore;
    }

    public void setyScore(int yScore) {
        this.yScore = yScore;
    }

    public int getsScore() {
        return sScore;
    }

    public void setsScore(int sScore) {
        this.sScore = sScore;
    }

    public int geteScore() {
        return eScore;
    }

    public void seteScore(int eScore) {
        this.eScore = eScore;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", yScore=" + yScore +
                ", sScore=" + sScore +
                ", eScore=" + eScore +
                '}';
    }

    //自定义求总成绩的方法
    public int getALL(){
        return yScore+sScore+eScore;
    }
}
